package com.sky.service.impl;

import com.sky.mapper.PermissionMapper;
import com.sky.service.AuthoritymanagementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 权限管理
 */
@Service
public class AuthoritymanagementServiceImpl implements AuthoritymanagementService {
    @Autowired
    private PermissionMapper permissionMapper;

    /**
     * 根据员工id查询该员工的权限标识
     *
     * @param id 员工id
     * @return 权限标识集合
     */
    @Override
    public List<String> selectByEmployeeId(Long id) {
        List<String> list = permissionMapper.selectByEmployeeId(id);
        return list;
    }
}
